<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>店铺流水管理</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        function page(n,s){
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
     </script>
</head>
<body>
<ul class="nav nav-tabs">
    <%--<li  class="active" ><a href="${ctx}/sys/tbShopVerify/">店铺列表</a></li>--%>
    <li class="active" ><a href="${ctx}/sys/tbShopVerify/mpWalletStream?id=${tbMpWalletStream.id}">店铺流水
    </a>
    </li>
</ul>
<form:form id="searchForm" modelAttribute="tbMpWalletStream" action="${ctx}/sys/tbShopVerify/mpWalletStream?id=${tbMpWalletStream.id}" method="post" class="breadcrumb form-search">
    <input id="pageNo" name="pageNo" type="hidden" value="${walletpage.pageNo}"/>
    <input id="pageSize" name="pageSize" type="hidden" value="${walletpage.pageSize}"/>
    <ul class="ul-form">
        <li><label>流水类型：</label>
            <select id="box" name="category" class="input-medium">
                <option value="">全部</option>
                <option  value="1" <c:if test="${tbMpWalletStream.category==1}"> selected</c:if> > 充值</option>
                <option  value="2" <c:if test="${tbMpWalletStream.category==2}"> selected</c:if> > 海外</option>
                <option  value="3" <c:if test="${tbMpWalletStream.category==3}"> selected</c:if> > 预定</option>
                <option  value="4" <c:if test="${tbMpWalletStream.category==4}"> selected</c:if> > 超市</option>
                <option  value="5" <c:if test="${tbMpWalletStream.category==5}"> selected</c:if> > 进货</option>
                <option  value="7" <c:if test="${tbMpWalletStream.category==7}"> selected</c:if> > 提现</option>
            </select>
        </li>
        <li><label>日期范围：&nbsp;</label>
            <input id="beginDate" name="beginDate" type="text" readonly="readonly" maxlength="20" class="input-mini Wdate"
                   value="<fmt:formatDate value="${tbMpWalletStream.beginDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
                   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
            --&nbsp;<input id="endDate" name="endDate" type="text" readonly="readonly" maxlength="20" class="input-mini Wdate"
                           value="<fmt:formatDate value="${tbMpWalletStream.endDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
                           onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>&nbsp;&nbsp;
        </li>
        <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
        <li class="clearfix"></li>
    </ul>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <tr>
        <th>店铺名称</th>
        <th>支付方式</th>
    <%--    <th>类型0收入1支出</th>--%>
        <th>类别</th>
        <th>交易金额</th>
        <th>时间</th>
    </tr>
    <c:forEach items="${walletpage.list}" var="tbMpWalletStream">
        <tr align="center">
            <td>
                    ${tbMpWalletStream.name}
            </td>
            <td>
                  <%--  ${tbMpWalletStream.payType}--%>
                <c:if test="${tbMpWalletStream.payType==0}">微信</c:if>
                <c:if test="${tbMpWalletStream.payType==1}">支付宝</c:if>
                <c:if test="${tbMpWalletStream.payType==2}">麻雀钱包</c:if>
            </td>
            <td>
                   <%-- ${tbMpWalletStream.category}--%>
                        <c:if test="${tbMpWalletStream.category==1}">充值</c:if>
                        <c:if test="${tbMpWalletStream.category==2}">海外</c:if>
                        <c:if test="${tbMpWalletStream.category==3}">预定</c:if>
                        <c:if test="${tbMpWalletStream.category==4}">超市</c:if>
                        <c:if test="${tbMpWalletStream.category==5}">进货</c:if>
                        <c:if test="${tbMpWalletStream.category==7}">提现</c:if>
            </td>
            <td>
                <c:choose>
                    <c:when test="${tbMpWalletStream.type==0}">
                        +
                    </c:when>
                    <c:otherwise>
                        -
                    </c:otherwise>
                </c:choose>
                    ${tbMpWalletStream.changeMoney}
            </td>
            <td>
                <fmt:formatDate value="${tbMpWalletStream.createTime}" type="both"/>
            </td>
        </tr>
    </c:forEach>
</table>
<div class="pagination">${walletpage}</div>
</body>
</html>